package com.example.service3;

import com.cloud.logger.zchain.core.common.base.ResultMessage;
import com.cloud.logger.zchain.spring.annotation.EnableZchainServer;
import com.cloud.logger.zchain.zchainclient.http.RestClientTemplate;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@EnableZchainServer
public class Service3Application {

	public static void main(String[] args) {
		SpringApplication.run(Service3Application.class, args);
	}
}
@RestController
class HomeController {


	private static final Log log = LogFactory.getLog(HomeController.class);

	private String url="http://localhost:1202";
	@RequestMapping("/service3")
	public ResultMessage service1() throws Exception {
		ResultMessage resultMessage = new ResultMessage();
		resultMessage.setCode(8200);
		resultMessage.setContent("{\"service\":\"s3\"}");
		return resultMessage;
	}

	@RequestMapping("/service4")
	public ResultMessage service4() throws Exception {
		ResultMessage resultMessage = new ResultMessage();
		resultMessage.setCode(8200);
		resultMessage.setContent("{\"service\":\"s4\"}");
		return resultMessage;
	}

	@RequestMapping("/service5")
	public ResultMessage service5() throws Exception {
		ResultMessage resultMessage = new ResultMessage();
		resultMessage.setCode(8200);
		resultMessage.setContent("{\"service\":\"s4\"}");
		return resultMessage;
	}
}